<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <title>搜索结果</title>
    <link rel="stylesheet" href="/static/src/jquery-weui/lib/weui.min.css">
    <link rel="stylesheet" href="/static/src/jquery-weui/css/jquery-weui.min.css">
    <script src="/static/src/jquery-weui/lib/jquery-2.1.4.js"></script>
    <script src="/static/src/jquery-weui/js/jquery-weui.min.js"></script>
</head>
<body>
<div>
    <div class="weui-flex">
      <div class="weui-flex__item">
          <a href="javascript:history.back();"><img src="/static/images/back.png" height="50px"></a>
      </div>
      <div class="weui-flex__item">
          <h2>搜索</h2>
      </div>
        <div class="weui-flex__item">
            <h2><a href="/">首页</a></h2>
      </div>
    </div>
    <div class="weui-panel weui-panel_access">
        <div class="weui-panel__hd">搜索到<b style="color:'red'"> {{ total_num }} </b>条结果:<hr></div>
      <div class="weui-panel__bd book_list" data_page="1">
          {% for item in items %}
        <a href="javascript:;" data_id="{{ item.book_id }}" class="weui-media-box weui-media-box_appmsg book">
          <div class="weui-media-box__hd">
            <img class="weui-media-box__thumb" src="{{ item.cover }}">
          </div>
          <div class="weui-media-box__bd">
            <h4 class="weui-media-box__title">
                <h4>书名:&emsp;<em>{{ item.book_name }}</em><em style="float:right">分类:&emsp;{{ item.category_name_2 }}</em></h4>
                <h4>作者:&emsp;<em>{{ item.author_name }}</em></h4>
            </h4>
            <p class="weui-media-box__desc">
                简介:{{ item.intro }}
            </p>
          </div>
        </a>
        {% endfor %}
      </div>
      <div class="weui-panel__ft">
        <a href="javascript:;" class="weui-cell weui-cell_access weui-cell_link">

              {% if has_next %}
            <div class="weui-cell__bd more">
              查看更多
             </div>
              {% else %}
            <div class="weui-cell__bd nomore">
              没有数据了~_~
            </div>
              {% endif %}

          <span class="weui-cell__ft"></span>
        </a>
      </div>
    </div>

</div>
</body>
<script src="/static/js/search.js"></script>
</html>